{include file="index@public/header" /}
<style>
    body {
        background: #e1e0de;
    }
    * {
        box-sizing: border-box;
    }
    h1,
    h2,
    h3,
    h4 {
        font-weight: 700 !important;
    }
    .layui-card-header {
        width: 100%;
        border-bottom: 1px solid #999 !important;
        padding-left: 5px;
    }
    .layui-container {
        padding: 0 !important;
    }
    ::-moz-selection {
        background: #cccccc;
        color: #ffffff;
    }
    ::selection {
        background: #cccccc;
        color: #ffffff;
    }
    /* 滚动条 */
    ::-webkit-scrollbar{
        -webkit-appearance: none;
        width: 8px;
        height: 8px;
    }
    ::-webkit-scrollbar-thumb{
        border-radius: 10px;
        box-shadow: 0 0 1px rgba(255,255,255,.5);
        background: rgba(0, 0, 0, .1);
    }
    .layui-card-body{
        padding: 10px 5px;
    }

    img {
        width: 90%;
        height: 100%;
        object-fit: contain;
        object-position: center;
    }
    .layui-card{
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .lay-content .category {
        width:200px;
    }
    .lay-content .content {
        border-left: solid 1px #CCC;
        width: calc(100% - 200px);
        padding: 30px 20px;
    }
    .category>.category-box {
        width: calc(200px - 30px);
        position: fixed;
        left:30px;
        top:95px;
    }
    .category-box .spt-line{
        margin: 15px 0;
        border-bottom: solid 1px #CCC;
    }
    .category-box>.nav-list {
        padding: 7px 20px 7px 5px; 
    }
    .menu-panel .nav-list{
        padding: 10px 40px 10px 20px; 
        white-space:nowrap;
    }
    .menu-panel .cat-nav-arrow::after{
        right: -35px;
    }

    .category-box .nav-list>*:not(.menu-panel){
        color: #333;
        font-weight: bold;
    }
    .category-box .nav-list a{
        text-decoration: none;
    }
    .cat-nav-arrow{
        position: relative;
    }
    .cat-nav-arrow::after{
        content: "";
        background-image: url("{:Config::get('app.images_host')}/images/web/right-arrow.png");
        background-size:contain;
        width: 12px;
        height: 12px;
        position: absolute;
        top: -13px;
        right: -15px;
    }
    
    .category-box .nav-list:hover {
        background: #36648a;
    }
    .category-box .nav-list:hover>*:not(.menu-panel){
        color: #fff;
    }

    /* 二级菜单 */
    .menu-panel {
        position: absolute;
        padding:10px 0;
        z-index: 5;
        box-shadow: inset 2px 0 5px 0 #D5D5D5, 2px 0 3px #E8E8E8;
        background: #fff;
        display: none;
    }

    #gengduoli>.gengduoli *{
        margin: unset;
        padding: revert;
        list-style: revert;
    }
    #gengduoli1>.gengduoli *{
        margin: unset;
        padding: revert;
        list-style: revert;
    }
    .gengduoli .H1{
        color:#333333;
        font-size:18px;
        font-weight: bold;
    }
    .gengduoli .H2{
        color:#333333;
        font-size:12px;
        font-weight: bold;
    }
   .gengduoli .MsoNormal{
        line-height:1.5;
        font-size:12px;
    }
    .gengduoli .MsoNormal:not(a){
        color:#333333;
    }
    .gengduoli .more, .gengduoli .close{
        cursor: pointer;
        color: #36648a;
        font-style: italic;
    }
    .cat-list {
        width: 100%;
        border-top: solid 1px #36648a;
    }
    .cat-list .first-title{
        width: inherit;
        height: 40px;
        line-height: 40px;
        font-size: 14px;
        font-weight: 550;
    }
    .cat-list .second-title{
        width: inherit;
        height: 20px;
        line-height: 20px;
        font-size: 12px;
    }
    .cat-list .second{
        width: inherit;
        margin-bottom: 35px;
    }
    .cat-list .second-content {
        width: inherit;
        display: flex;
        flex-wrap: wrap;
        justify-content: left;
    }
    .cat-list .second-content>a{
       margin-bottom: 10px;
       margin-right: 15px;
       text-decoration: none;
       color: #333;
       border: solid 1px #eee;
       width: 122px;
    }
    .cat-list .second-content>a>div:first-child {
        width: inherit;
        height: 55px;
        display: flex;
        align-items: baseline;
        justify-content: center;
    }
    .cat-list .second-content>a>div:last-child {
        width: inherit;
        font: 10px/12px arial,helvetica,sans-serif;
        text-align: center;
    }
    .cat-list .second-content>a>div:first-child img {
        max-width: 60px;
        max-height: 50px;
        height: inherit;
    }
    .cat-list .second-content>a:hover>div:first-child img{
        max-height: 53px;
    }
</style>
<div class="lay-content" style='font: 12px/14px arial,helvetica,sans-serif;'>
    <div class="layui-card">
        <div class="category">
            <div class="category-box">
                {foreach $product_class_data as $key=>$vo}
                <div class="nav-list">
                    <a href="/{$vo['first']['url']}">{$vo['first']['alias_name']}</a>
                    <div class="cat-nav-arrow"></div>
                    <!-- 二级菜单 -->
                    <div class="menu-panel">
                        <?php if(empty($vo['second'])){?>
                        <div class="nav-list">
                            <a href="/{$vo['first']['url']}">{$vo['first']['alias_name']}</a>
                        </div>
                        <?php } ?>

                        <?php if(!empty($vo['second']['class_notag'])){?>
                        {foreach $vo['second']['class_notag'] as $v}
                        <div class="nav-list">
                            <a href="/{$v['url']}">{$v['alias_name']}</a>
                        </div>
                        {/foreach}
                        <?php } ?>

                        <?php if(!empty($vo['second']['class_tag'])){?>
                        {foreach $vo['second']['class_tag'] as $k=>$tag }
                        <div class="nav-list">
                            <span>{$k}</span>
                            <div class="cat-nav-arrow"></div>

                            <!-- 三级菜单 -->
                            <div class="menu-panel">
                                {foreach $tag as $vv}
                                <div class="nav-list">
                                    <a href="/{$vv['url']}">{$vv['alias_name']}</a>
                                </div>
                                {/foreach}
                            </div>
                        </div>
                        {/foreach}
                        <?php } ?>
                    </div>
                </div>

                <?php if($vo['first']['cname'] == 'Bearing Applications'){ ?>
                <div class="spt-line"></div>
                <?php } ?>
                {/foreach}
            </div>
            
        </div>
        <div class="content">
            <div id="gengduoli">
                <div class="gengduoli">
                    <h1 class="H1">
                        工业轴承
                    </h1>
                    
                    <div><br/></div>
                    <h2 class="H2">
                        什么是工业轴承？
                    </h2>
                    <p class="MsoNormal">
                        工业轴承是各种工业应用中使用的重要部件，用于提供运动、支撑负载和减少摩擦。这些最高质量的轴承经过精心设计，以确保精度、可靠性和耐用性，从而提高各种机械的效率和寿命。
                    </p>
                    
                    <div><br/></div>
                    <h2 class="H2">
                        工业轴承的特点
                    </h2>
                    <ul>
                        <li class="MsoNormal">
                            负载处理：能够处理径向、轴向或两者的组合<a href="/resources/blog/understanding-bearing-loads/">荷载类型。</a>
                        </li>
                        <li class="MsoNormal">
                            减少摩擦：旨在减少旋转摩擦，帮助工业设备平稳运行。
                        </li>
                        <li class="MsoNormal">
                            耐用性：工业轴承的坚固性使其能够承受高速运行和恶劣环境。
                        </li>
                        <li class="MsoNormal">
                            材料多样性：工业轴承由不锈钢和陶瓷等各种材料制成，符合应用需求。
                        </li>
                    </ul>
    
                    <span class="more">更多</span>
                    <div class="MoreDetail">
                        <div><br></div>
                        <h2 class="H2">
                            工业轴承的主要类型
                        </h2>
                        <p class="MsoNormal">
                            工业轴承有多种类型,每个都有自己的特定应用程序。
                            <ul>
                                <li class="MsoNormal">滚珠轴承：减少旋转摩擦，非常适合高速应用。</li>
                                <li class="MsoNormal">滚柱轴承：由于线路接触，在重载情况下表现出色，提供更高的承载能力。</li>
                                <li class="MsoNormal">回转环轴承：处理轴向、径向和力矩载荷，对起重机等重型机械至关重要。</li>
                                <li class="MsoNormal">凸轮从动件：有效管理高径向载荷，减少运动控制任务中的摩擦。</li>
                                <li class="MsoNormal">滑动轴承：滑动操作，非常适合高承载需求。</li>
                                <li class="MsoNormal">线性轴承：沿单轴提供低摩擦运动，非常适合数控机床等精密任务。</li>
                            </ul>
                        </p>
                         
                        <div><br></div> 
                        <h2 class="H2">
                            工业轴承品牌
                        </h2>
                        <p class="MsoNormal">
                            工业轴承市场上存在许多品牌，例如：
                            <ul>
                                <li class="MsoNormal"><a href="/product/marketing/skf-lily-interchange-table/">SKF</a>: 一家提供耐用、高性能、节能轴承的瑞典制造商。</li>
                                <li class="MsoNormal"><a href="/product/marketing/ezo/">EZO</a>: 一家专门生产小型和精密滚珠轴承的日本制造商，以其紧凑型和高速轴承而闻名。</li>
                                <li class="MsoNormal"><a href="/product/marketing/timken-lily-interchange-table/">TIMKEN</a>: 以坚固耐用的轴承而闻名的美国品牌，在极端负载和工况处理方面表现出色。</li>
                                <li class="MsoNormal"><a href="/product/marketing/iko-lily-interchange-table/">IKO</a>: 专门生产滚针轴承和直线运动导轨，适用于精密应用。</li>
                            </ul>
                            其他品牌的工业轴承，如 <a href='/product/marketing/mcgill-lily-interchange-table/'>McGill</a>, <a href='/product/marketing/ina-lily-interchange-table/'>INA</a>, <a href='/product/brand/nmb/'>NMB</a>, <a href='/product/thk-linear-motion-guides/'>THK</a>, <a href='/product/marketing/mcmaster-lily-interchange-table/'>Mamaster</a>, <a href='/product/marketing/rbc-lily-interchange-table/'>RBC</a>, <a href='/product/fag-angular-contact-ball-bearings/'>FAG</a>, <a href='/product/marketing/dynaroll/'>DYNAROLL</a>, 也有自己的特点。养贞轴承为这些知名品牌提供同等的替代品。
                        </p>
                        
                        <div><br></div>
                        <h2 class="H2">
                            养贞工业轴承的优势
                        </h2>
                        <p class="MsoNormal">
                           养贞轴承的工业轴承比其竞争对手具有以下几个优势：
                            <ul>
                                <li class="MsoNormal">价格竞争力</li>
                                <li class="MsoNormal">定制灵活性</li>
                                <li class="MsoNormal">快速全球交付</li>
                                <li class="MsoNormal">以客户为中心的方法</li>
                            </ul>
                        </p>
                        <span class="close">关闭</span>
                    </div>
                </div>
            </div>
    
            {foreach $product_class_data as $key=>$vo }
            <div class="cat-list">
                <div class="first-title">
                    {$vo['first']['alias_name']}
                </div>

                <?php if(empty($vo['second'])){?>
                <div class="second">
                    <div class="second-content"> 
                        <a href="/{$vo['first']['url']}">
                            <div><img src="{:Config::get('app.images_host')}{$vo['first']['img']}" /></div>
                            <div>{$vo['first']['alias_name']}</div> 
                        </a>
                    </div>
                </div>
                <?php } ?>
                
                <?php if(!empty($vo['second']['class_notag'])){?>
                <div class="second">
                    <div class="second-content">
                        {foreach $vo['second']['class_notag'] as $v}
                        <a href="/{$v['url']}">
                            <div><img src="{:Config::get('app.images_host')}{$v['img']}" /></div>
                            <div>{$v['alias_name']}</div> 
                        </a>
                        {/foreach}
                    </div>
                </div>
                <?php } ?>

                <?php if(!empty($vo['second']['class_tag'])){?>
                {foreach $vo['second']['class_tag'] as $k=>$v }
                <div class="second">
                    <div class="second-title">{$k}</div>
                    <div class="second-content"> 
                        {foreach $v as $vv }
                        <a href="/{$vv['url']}">
                            <div><img src="{:Config::get('app.images_host')}{$vv['img']}" /></div>
                            <div>{$vv['alias_name']}</div> 
                        </a>
                        {/foreach}
                    </div>
                </div>
                {/foreach}
                <?php } ?>
            </div>
            {/foreach}
        </div>
       
    </div>
</div>

    {include file="index@/public/footer" /}
    <script>
        $(".more").click(function () {
            $(this).hide();
            $('.close').show();
            $('.MoreDetail').show();
        });
        $(".close").click(function () {
            $(this).hide();
            $('.more').show();
            $('.MoreDetail').hide();
        });
        $('.MoreDetail').hide();

        //左侧tab - 显示
        $('.nav-list').on('mouseenter', function() {
            var $sT = $(window).scrollTop() //滚动高度
            var $wH = $(window).height()    //屏幕高度

            var $x = $(this).outerWidth()
            var $y = $(this).offset().top //当前元素 距离屏幕的偏移量
            var $pY    = $(this).parent().offset().top
            var $bHeight = $(this).children('.menu-panel').outerHeight() //子集tab 框高度

            $offset = $y - $pY
            if($wH - ($y - $sT) - $bHeight < 100){

                $offset2 = $offset - $bHeight + 40
                $offset3 = ($wH - $bHeight - 64) / 2
                if($offset3<$offset & $offset<($offset3+$bHeight)){
                    $offset = $offset3
                }else{
                    $offset = $offset2
                }
            }
           
            $(this).children('.menu-panel').css({
                display: 'block',
                top: $offset + 'px',
                left: $x + 'px',
            })
        })

        //左侧tab - 隐藏
        $('.nav-list').on('mouseleave', function() {
            $(this).children('.menu-panel').hide()
        })

        //鼠标滚动到底部
        $(window).scroll(function () {
            var scrollTop = $(this).scrollTop();
            var scrollHeight = $(document).height();
            var windowHeight = $(this).height();
           
            if (scrollTop + windowHeight > scrollHeight - 400) {
                console.log('到底了')
                $('.category-box').css({
                    position:'absolute',
                })
            }else{
                $('.category-box').css({
                    position:'fixed',
                    bottom: '95px'
                })
            }
        });
    </script>